package io.renren.generate;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: tianchao
 * @Date: 2020/11/29 19:52
 * @Description:
 */
public interface GeneratorDao {
    /**
     * 查询数据库名字
     * @return
     */
    List<String> queryDataBaseNamesAll();

    /**
     * 查询数据库的表的信息
     * @param param
     * @return
     */
    IPage<Map<String,String>> queryList(IPage page,@Param("param") Map<String, Object> param);

    Map<String, String> queryTable(String tableName);

    List<Map<String, String>> queryColumns(String tableName);
}
